package br.com.sgi.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.sgi.bean.TaskService;
import br.com.sgi.dao.TaskDao;
import br.com.sgi.model.Task;

@Service("taskService")
public class TaskServiceImpl implements TaskService {
	
	@Autowired
	private TaskDao taskDao;

	public void save(Task task) {
		taskDao.save(task);
		
	}

	@Override
	public List<Task> buscarTasks() {
		return taskDao.findAll();
		
	}
	
	

}
